package com.zqweb.gulimall.seckill.config;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
// RabbitMQ的配置类
public class RabbitMQConfig {
    // 自定义消息的序列化机制（发送与存储）
    @Bean
    public MessageConverter customMsgSerializer(){
        return new Jackson2JsonMessageConverter();
    }

}
